package com.lxmes.business.domain;

import com.lxmes.common.core.domain.BaseEntity;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@Component
public class WLogin extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @Value("${wslogin.sSubId}")
    private  String sSubId;
    @Value("${wslogin.sAccID}")
    private  String sAccID;
    @Value("${wslogin.sYear}")
    private  String sYear;
    @Value("${wslogin.sUserID}")
    private  String sUserID;
    @Value("${wslogin.sPassword}")
    private  String sPassword;
    @Value("${wslogin.sDate}")
    private  String sDate;
    @Value("${wslogin.sServer}")
    private  String sServer;
    @Value("${wslogin.sSerial}")
    private  String sSerial;

    public String getsSubId() {
        return sSubId;
    }

    public void setsSubId(String sSubId) {
        this.sSubId = sSubId;
    }

    public String getsAccID() {
        return sAccID;
    }

    public void setsAccID(String sAccID) {
        this.sAccID = sAccID;
    }

    public String getsYear() {
        return sYear;
    }

    public void setsYear(String sYear) {
        this.sYear = sYear;
    }

    public String getsUserID() {
        return sUserID;
    }

    public void setsUserID(String sUserID) {
        this.sUserID = sUserID;
    }

    public String getsPassword() {
        return sPassword;
    }

    public void setsPassword(String sPassword) {
        this.sPassword = sPassword;
    }

    public String getsDate() {
        return sDate;
    }

    public void setsDate(String sDate) {
        this.sDate = sDate;
    }

    public String getsServer() {
        return sServer;
    }

    public void setsServer(String sServer) {
        this.sServer = sServer;
    }

    public String getsSerial() {
        return sSerial;
    }


    public void setsSerial(String sSerial) {
        this.sSerial = sSerial;
    }
    //<login sSubId='AS' sAccID='(default)@666' sYear='2024' sUserID='API' sPassword='1' sDate='2024-09-04' sServer='192.168.3.13' sSerial=''/>
    @Override
    public String toString() {
        return "<login " +
                "sSubId='" + sSubId + '\'' +
                " sAccID='" + sAccID + '\'' +
                " sYear='" + sYear + '\'' +
                " sUserID='" + sUserID + '\'' +
                " sPassword='" + sPassword + '\'' +
                " sDate='" + sDate + '\'' +
                " sServer='" + sServer + '\'' +
                " sSerial='" + sSerial + '\'' + "/>";
    }
}
